package com.hilin.entity.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hilin.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author qhl
 * @since 2021-11-24
 */
@Data
@ApiModel("角色表")
@TableName("sys_role")
public class SysRolePo extends BaseEntity<SysRolePo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("角色id")
    @TableId("role_id")
    private Long roleId;
    @ApiModelProperty("角色名称")
    @TableField("role_name")
    private String roleName;
    @ApiModelProperty("所属机构ID")
    @TableField("org_id")
    private String orgId;
    @ApiModelProperty("创建人")
    private String creator;
    @ApiModelProperty("创建人类型")
    @TableField("creator_type")
    private String creatorType;
    @ApiModelProperty("创建时间")
    @TableField("creator_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creatorTime;
    @ApiModelProperty("更新人")
    private String updator;
    @ApiModelProperty("更新人类型")
    @TableField("updator_type")
    private String updatorType;
    @ApiModelProperty("更新时间")
    @TableField("updator_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatorTime;
}